<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">功能设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    小程序申请 <span class="tpl-form-line-small-title">审核</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[applet_apply]" value="1" data-am-ucheck
                                            {$model['applet_apply'] == 1 ? 'checked':''}>
                                        开启
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[applet_apply]" value="0" data-am-ucheck 
                                        {$model['applet_apply'] == 0 ? 'checked':''}>
                                        关闭
                                    </label>
                                    <div class="help-block">
                                        <small>开启：需要平台审核资料。关闭：可跳过平台审核直接提交申请</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    小程序 <span class="tpl-form-line-small-title">审核费</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="number" min="0" class="tpl-form-input" name="data[applet_fee]"
                                    value="{$model['applet_fee']}" required>
                                    <small>设置为0不收取，单位元</small>
                                </div>
                            </div><div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    小程序发布 <span class="tpl-form-line-small-title">上线</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[applet_online]" value="1" data-am-ucheck
                                            {$model['applet_online'] == 1 ? 'checked':''}>
                                        自动
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[applet_online]" value="0" data-am-ucheck 
                                        {$model['applet_online'] == 0 ? 'checked':''}>
                                        手动
                                    </label>
                                    <div class="help-block">
                                        <small>用户提审的小程序代码，通过审核后是否自动上线</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    支付申请 <span class="tpl-form-line-small-title">审核</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[pay_apply]" value="1" data-am-ucheck
                                            {$model['pay_apply'] == 1 ? 'checked':''}>
                                        开启
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[pay_apply]" value="0" data-am-ucheck 
                                        {$model['pay_apply'] == 0 ? 'checked':''}>
                                        关闭
                                    </label>
                                    <div class="help-block">
                                        <small>开启：需要平台审核资料。关闭：可跳过平台审核直接提交申请</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">管理员微信ID </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[open_id]"
                                           value="{$model['open_id']}">
									<small>用于接收站点提醒信息。用于接收的微信关注官方公众号后，回复”id“获得。</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">微信地图KEY </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[wxmap]"
                                           value="{$model['wxmap']}">
									<small>用于商户获取微信地图计算距离。我还没有？ <a href="https://lbs.qq.com/"  target="_blank"> 去注册</a></small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        
        $('#my-form').formPost();

    });
</script>
